package com.example.demo.dao;

import com.example.demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper {
    //用户注册
    public int RegisterUser(User user);

    //用户登录
    public int LoginUserByPw(User user);

    public int queryUserByMail(String mail);//根据邮箱查用户数，查到用户后才能登录成功
}
